package com.yizn;

import com.spring.YiznApplicationContext;
import com.yizn.service.AppConfig;
import com.yizn.service.OrderService;
import com.yizn.service.UserInterface;
import com.yizn.service.UserService;

/**
 * project : my-learn
 * <p> 测试类 </p>
 *
 * @author yisl
 * @date 2022-07-22【星期五】
 **/
public class Test {
    public static void main(String[] args) {
        YiznApplicationContext applicationContext = new YiznApplicationContext(AppConfig.class);
        UserInterface userService =  (UserInterface) applicationContext.getBean("userService");
        OrderService orderService =  (OrderService) applicationContext.getBean("orderService");
        //System.out.println(userService);
        //System.out.println(userService);
        //System.out.println(orderService);
        userService.test();
    }
}
